[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
PCOUNT()
PCOUNT() returns the number of actual parameters that have been passed
to a procedure or user-defined function.
Syntax
PCOUNT()
Returns
An integer numeric value.
PCOUNT() returns the number of parameters passed. If no parameters are
passed, PCOUNT() returns zero. Note that PCOUNT() retains its value
until you attempt to pass parameters to either a procedure or a user-
defined function.
Usage
PCOUNT() can prove useful when polling the DOS command line for
parameters at the top of your program.
Example
PARAMETERS file
IF PCOUNT() = 0
ACCEPT "File to use: " TO file
ENDIF
USE &file
See Also:
PARAMETERS
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson